/*
 * @Author: your name
 * @Date: 2021-11-09 19:31:48
 * @LastEditTime: 2021-11-09 19:31:48
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\demo-work\vue.config.js
 */
module.exports = {
    devServer: {
        proxy: {
            "/api": {
                target: "http://127.0.0.1:7001",
                changeOrigin: true,
                pathRewrite: {
                    "^/api": "",
                },
            },
            "/oss": {
                target: "https://lzw929.oss-cn-shanghai.aliyuncs.com",
                changeOrigin: true,
                pathRewrite: {
                    "^/oss": "/",
                },
            },
        },
    },
};